package com.community.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.community.pojo.GatherDetails;
import com.community.pojo.GatherDetails;
import com.community.pojo.PayDetails;
import com.community.service.IGatherDetailsService;
import com.community.service.IGatherService;
import com.community.utils.PageUtils;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author TangHaoSong Fly ChenJie HeYuHang
 * @since 2024-05-15
 */
@CrossOrigin
@Controller
@RequestMapping("/community/gatherDetails")
public class GatherDetailsController {

    @Autowired
    private IGatherService gatherService;

    @Autowired
    private IGatherDetailsService gatherDetailsService;
    /**
     * 入库明细单表查询
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/show")
    public List<GatherDetails> show() {
        QueryWrapper<GatherDetails> wrapper = new QueryWrapper<>();
        List<GatherDetails> list = gatherDetailsService.list();
        return list;
    }
    @ResponseBody
    @RequestMapping("/show2")
    public List<GatherDetails> show2() {
        List<GatherDetails> list = gatherDetailsService.gatherDetailsList();
        return list;
    }
}
